<?php
/**
 * 系统消息
 * Create by PhpStorm
 * User: lijia
 * Data: 2020/8/7
 * Time: 15:11
 */

namespace app\admin\model;


class Message extends BaseModel
{
    public function status($id,$status){
        $where = [ 'id' => $id ];
        $data = ['status' => $status];
        return $this->where($where)->save($data);
    }
}